package com.light.gulimall.ware.exception;

public class NoStockException extends RuntimeException {

    private Long skuId;

    public NoStockException(Long skuId) {
        super("商品id："+skuId+"没有库存了");
    }


    public NoStockException() {
    }

    /**
     * 获取
     * @return skuId
     */
    public Long getSkuId() {
        return skuId;
    }

    /**
     * 设置
     * @param skuId
     */
    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }


}
